package com.zhang.service.impl;

import com.zhang.mapper.IUserMapper;
import com.zhang.pojo.UserBean;
import com.zhang.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户业务实现类
 */
@Service
@Transactional
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserMapper userMapper;

    @Override
    public UserBean login(String name, String pwd) {
        return userMapper.login(name, pwd);
    }
}
